home *** CD-ROM | disk | FTP | other *** search
- ##=====================================================================
- ##
- ## Useful stuff for building button bars.
- ##
- ##=====================================================================
-
- ## Control the width (in characters) of the search input field,
- ## and the label on the associated button.
-
- dwSetParam Search_sliver_size 45
- dwSetParam Search_button_label Search
-
- ## Set up a mapping between readable names for the icons vs. the
- ## associated file names.
-
- dwSetParam button_path_map {
- inso_home_page \"[dwGetParam IconDir]b_insohmpg.gif\"
- home \"[dwGetParam IconDir]b_home.gif\"
- collection \"[dwGetParam IconDir]b_colect.gif\"
- collection_dim \"[dwGetParam IconDir]d_colect.gif\"
- book \"[dwGetParam IconDir]b_book.gif\"
- book_dim \"[dwGetParam IconDir]d_book.gif\"
- expand \"[dwGetParam IconDir]b_expand.gif\"
- expand_dim \"[dwGetParam IconDir]d_expand.gif\"
- collapse \"[dwGetParam IconDir]b_colpse.gif\"
- collapse_dim \"[dwGetParam IconDir]d_colpse.gif\"
- search_forms \"[dwGetParam IconDir]b_forms.gif\"
- search_forms_dim \"[dwGetParam IconDir]d_forms.gif\"
- clear_search \"[dwGetParam IconDir]b_clear.gif\"
- clear_search_dim \"[dwGetParam IconDir]d_clear.gif\"
- prev_hit \"[dwGetParam IconDir]b_prvhit.gif\"
- prev_hit_dim \"[dwGetParam IconDir]d_prvhit.gif\"
- next_hit \"[dwGetParam IconDir]b_nxthit.gif\"
- next_hit_dim \"[dwGetParam IconDir]d_nxthit.gif\"
- hide_frames \"[dwGetParam IconDir]b_nofram.gif\"
- show_frames \"[dwGetParam IconDir]b_frames.gif\"
- help \"[dwGetParam IconDir]b_help.gif\"
- }
-
- ## Gather all the "alternate" button labels (for when users elect not
- ## to download images) into one place for convenience.
-
- dwSetParam button_title_map {
- inso_home_page {[Inso Home Page]}
- home {[Home]}
- collection {[Collection]}
- book {[Book]}
- hide_frames {[Hide Frames]}
- show_frames {[Show Frames]}
- expand {[Expand]}
- collapse {[Collapse]}
- search_forms {[Forms]}
- clear_search {[Clear Search]}
- prev_hit {[Prev Hit]}
- next_hit {[Next Hit]}
- help {[Help]}
- }
-
- ## For legibility of the templates create mappings of concise button names
- ## to the rather more verbose IMG tags.
-
- dwSetParam button_alignment MIDDLE
- dwSetParam button_border 0
- dwSetParam button_height 30
- dwSetParam button_width 30
- dwSetParam graphic_height 30
- dwSetParam graphic_width 30
-
-
- dwSetParam button_image_srcmap {
- inso_home_page "<IMG\ SRC=[dwGetParam button_path_map inso_home_page]\
- ALT=[dwGetParam button_title_map inso_home_page]\
- ALIGN=[dwGetParam button_alignment]\
- BORDER=[dwGetParam button_border]\
- WIDTH=[dwGetParam button_width]\
- HEIGHT=[dwGetParam button_height]>"
- home "<IMG\ SRC=[dwGetParam button_path_map home]\
- ALT=[dwGetParam button_title_map home]\
- ALIGN=[dwGetParam button_alignment]\
- BORDER=[dwGetParam button_border]\
- WIDTH=[dwGetParam button_width]\
- HEIGHT=[dwGetParam button_height]>"
- collection "<IMG\ SRC=[dwGetParam button_path_map collection]\
- ALT=[dwGetParam button_title_map collection]\
- ALIGN=[dwGetParam button_alignment]\
- BORDER=[dwGetParam button_border]\
- WIDTH=[dwGetParam button_width]\
- HEIGHT=[dwGetParam button_height]>"
- collection_dim "<IMG\ SRC=[dwGetParam button_path_map collection_dim]\
- ALT=[dwGetParam button_title_map collection]\
- ALIGN=[dwGetParam button_alignment]\
- BORDER=[dwGetParam button_border]\
- WIDTH=[dwGetParam button_width]\
- HEIGHT=[dwGetParam button_height]>"
- book "<IMG\ SRC=[dwGetParam button_path_map book]\
- ALT=[dwGetParam button_title_map book]\
- ALIGN=[dwGetParam button_alignment]\
- BORDER=[dwGetParam button_border]\
- WIDTH=[dwGetParam button_width]\
- HEIGHT=[dwGetParam button_height]>"
- book_dim "<IMG\ SRC=[dwGetParam button_path_map book_dim]\
- ALT=[dwGetParam button_title_map book]\
- ALIGN=[dwGetParam button_alignment]\
- BORDER=[dwGetParam button_border]\
- WIDTH=[dwGetParam button_width]\
- HEIGHT=[dwGetParam button_height]>"
- expand "<IMG\ SRC=[dwGetParam button_path_map expand]\
- ALT=[dwGetParam button_title_map expand]\
- ALIGN=[dwGetParam button_alignment]\
- BORDER=[dwGetParam button_border]\
- WIDTH=[dwGetParam button_width]\
- HEIGHT=[dwGetParam button_height]>"
- expand_dim "<IMG\ SRC=[dwGetParam button_path_map expand_dim]\
- ALT=[dwGetParam button_title_map expand]\
- ALIGN=[dwGetParam button_alignment]\
- BORDER=[dwGetParam button_border]\
- WIDTH=[dwGetParam button_width]\
- HEIGHT=[dwGetParam button_height]>"
- collapse "<IMG\ SRC=[dwGetParam button_path_map collapse]\
- ALT=[dwGetParam button_title_map collapse]\
- ALIGN=[dwGetParam button_alignment]\
- BORDER=[dwGetParam button_border]\
- WIDTH=[dwGetParam button_width]\
- HEIGHT=[dwGetParam button_height]>"
- collapse_dim "<IMG\ SRC=[dwGetParam button_path_map collapse_dim]\
- ALT=[dwGetParam button_title_map collapse]\
- ALIGN=[dwGetParam button_alignment]\
- BORDER=[dwGetParam button_border]\
- WIDTH=[dwGetParam button_width]\
- HEIGHT=[dwGetParam button_height]>"
- search_forms "<IMG\ SRC=[dwGetParam button_path_map search_forms]\
- ALT=[dwGetParam button_title_map search_forms]\
- ALIGN=[dwGetParam button_alignment]\
- BORDER=[dwGetParam button_border]\
- WIDTH=[dwGetParam button_width]\
- HEIGHT=[dwGetParam button_height]>"
- search_forms_dim "<IMG\ SRC=[dwGetParam button_path_map search_forms_dim]\
- ALT=[dwGetParam button_title_map search_forms]\
- ALIGN=[dwGetParam button_alignment]\
- BORDER=[dwGetParam button_border]\
- WIDTH=[dwGetParam button_width]\
- HEIGHT=[dwGetParam button_height]>"
- clear_search "<IMG\ SRC=[dwGetParam button_path_map clear_search]\
- ALT=[dwGetParam button_title_map clear_search]\
- ALIGN=[dwGetParam button_alignment]\
- BORDER=[dwGetParam button_border]\
- WIDTH=[dwGetParam button_width]\
- HEIGHT=[dwGetParam button_height]>"
- clear_search_dim "<IMG\ SRC=[dwGetParam button_path_map clear_search_dim]\
- ALT=[dwGetParam button_title_map clear_search]\
- ALIGN=[dwGetParam button_alignment]\
- BORDER=[dwGetParam button_border]\
- WIDTH=[dwGetParam button_width]\
- HEIGHT=[dwGetParam button_height]>"
- prev_hit "<IMG\ SRC=[dwGetParam button_path_map prev_hit]\
- ALT=[dwGetParam button_title_map prev_hit]\
- ALIGN=[dwGetParam button_alignment]\
- BORDER=[dwGetParam button_border]\
- WIDTH=[dwGetParam button_width]\
- HEIGHT=[dwGetParam button_height]>"
- prev_hit_dim "<IMG\ SRC=[dwGetParam button_path_map prev_hit_dim]\
- ALT=[dwGetParam button_title_map prev_hit]\
- ALIGN=[dwGetParam button_alignment]\
- BORDER=[dwGetParam button_border]\
- WIDTH=[dwGetParam button_width]\
- HEIGHT=[dwGetParam button_height]>"
- next_hit "<IMG\ SRC=[dwGetParam button_path_map next_hit]\
- ALT=[dwGetParam button_title_map next_hit]\
- ALIGN=[dwGetParam button_alignment]\
- BORDER=[dwGetParam button_border]\
- WIDTH=[dwGetParam button_width]\
- HEIGHT=[dwGetParam button_height]>"
- next_hit_dim "<IMG\ SRC=[dwGetParam button_path_map next_hit_dim]\
- ALT=[dwGetParam button_title_map next_hit]\
- ALIGN=[dwGetParam button_alignment]\
- BORDER=[dwGetParam button_border]\
- WIDTH=[dwGetParam button_width]\
- HEIGHT=[dwGetParam button_height]>"
- hide_frames "<IMG\ SRC=[dwGetParam button_path_map hide_frames]\
- ALT=[dwGetParam button_title_map hide_frames]\
- ALIGN=[dwGetParam button_alignment]\
- BORDER=[dwGetParam button_border]\
- WIDTH=[dwGetParam button_width]\
- HEIGHT=[dwGetParam button_height]>"
- show_frames "<IMG\ SRC=[dwGetParam button_path_map show_frames]\
- ALT=[dwGetParam button_title_map show_frames]\
- ALIGN=[dwGetParam button_alignment]\
- BORDER=[dwGetParam button_border]>"
- help "<IMG\ SRC=[dwGetParam button_path_map help]\
- ALT=[dwGetParam button_title_map help]\
- ALIGN=[dwGetParam button_alignment]\
- BORDER=[dwGetParam button_border]\
- WIDTH=[dwGetParam button_width]\
- HEIGHT=[dwGetParam button_height]>"
- }
-
- dwSetParam graphic_border 0
-
- dwSetParam graphic_path {
- collection \"[dwGetParam IconDir]i_colect.gif\"
- book \"[dwGetParam IconDir]i_book.gif\"
- expand \"[dwGetParam IconDir]i_expand.gif\"
- collapse \"[dwGetParam IconDir]i_colpse.gif\"
- spacer \"[dwGetParam IconDir]spacer.gif\"
- previous_page \"[dwGetParam IconDir]b_prev.gif\"
- previous_page_dim \"[dwGetParam IconDir]d_prev.gif\"
- toc \"[dwGetParam IconDir]b_toc.gif\"
- next_page \"[dwGetParam IconDir]b_next.gif\"
- next_page_dim \"[dwGetParam IconDir]d_next.gif\"
- }
-
- dwSetParam graphic_title {
- collection {" "}
- book {" "}
- expand {"+"}
- collapse {"-"}
- spacer {" "}
- previous_page {" "}
- previous_page_dim {" "}
- next_page {" "}
- toc {" "}
- next_page_dim {" "}
- }
-
- dwSetParam graphic_image_srcmap {
- collection "<IMG\ SRC=[dwGetParam graphic_path collection]\
- ALT=[dwGetParam graphic_title collection]\
- BORDER=[dwGetParam graphic_border]>"
- book "<IMG\ SRC=[dwGetParam graphic_path book]\
- ALT=[dwGetParam graphic_title book]\
- BORDER=[dwGetParam graphic_border]>"
- expand "<IMG\ SRC=[dwGetParam graphic_path expand]\
- VALIGN=TOP\
- ALT=[dwGetParam graphic_title expand]\
- BORDER=[dwGetParam graphic_border]>"
- collapse "<IMG\ SRC=[dwGetParam graphic_path collapse]\
- VALIGN=TOP\
- ALT=[dwGetParam graphic_title collapse]\
- BORDER=[dwGetParam graphic_border]>"
- prev_page "<IMG\ SRC=[dwGetParam graphic_path previous_page]\
- ALT=[dwGetParam graphic_title previous_page]\
- BORDER=[dwGetParam graphic_border]>"
- prev_page_dim "<IMG\ SRC=[dwGetParam graphic_path previous_page_dim]\
- ALT=[dwGetParam graphic_title previous_page_dim]\
- BORDER=[dwGetParam graphic_border]>"
- toc "<IMG\ SRC=[dwGetParam graphic_path toc]\
- ALT=[dwGetParam graphic_title toc]\
- BORDER=[dwGetParam graphic_border]>"
- next_page "<IMG\ SRC=[dwGetParam graphic_path next_page]\
- ALT=[dwGetParam graphic_title next_page]\
- BORDER=[dwGetParam graphic_border]>"
- next_page_dim "<IMG\ SRC=[dwGetParam graphic_path next_page_dim]\
- ALT=[dwGetParam graphic_title next_page_dim]\
- BORDER=[dwGetParam graphic_border]>"
- spacer "<IMG\ SRC=[dwGetParam graphic_path spacer]>"
- }
-
- dwSetParam a_href_map {
- inso_home_page "<A\ HREF=\"http://www.inso.com\" \
- TARGET=dynaweb_popup>[dwGetParam button_image_srcmap inso_home_page]</A>"
- help "<A\ HREF=\"[dwGetParam IconDir]iconhelp.htm\" \
- TARGET=_top>[dwGetParam button_image_srcmap help]</A>"
- }
-